package com.ruoyi.vip.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员管理对象 t_vip
 * 
 * @author ruoyi
 * @date 2024-11-09
 */
public class TVip extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员ID, 主键，自动递增 */
    private Long vipId;

    /** 用户ID，不能为空 */
    @Excel(name = "用户ID，不能为空")
    private Long userId;

    /** 会员等级，'初级', '中级', '高级' */
    @Excel(name = "会员等级，'初级', '中级', '高级'")
    private Long vipLevel;

    /** 会员开始时间，不能为空 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员开始时间，不能为空", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 会员结束时间，不能为空 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员结束时间，不能为空", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    public void setVipId(Long vipId) 
    {
        this.vipId = vipId;
    }

    public Long getVipId() 
    {
        return vipId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setVipLevel(Long vipLevel)
    {
        this.vipLevel = vipLevel;
    }

    public Long getVipLevel()
    {
        return vipLevel;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("vipId", getVipId())
            .append("userId", getUserId())
            .append("vipLevel", getVipLevel())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
                .append("userName", getUserName())
            .toString();
    }
}
